package com.stillalive.springbootbooksystem.Model;
import lombok.Data;

@Data
public class PageRequest {
    public Integer getOffset() {
        return (currentPage-1) * pageSize;
    }

    private Integer currentPage = 1;
    private Integer pageSize = 10;
    private Integer offset;
}
